<?php

namespace app\models;

use Yii;
use yii\db\ActiveRecord;

/**
 * 代理商资金变化

 * @package app\models

 */
class MoneyChange extends ActiveRecord
{
	const STATUS_ORDER = 1; // 后台订购
    const STATUS_RECHARGE = 2; // 充值
    const STATUS_PROFIT = 3; //佣金
    
    public function getAgent()
    {
        return $this->hasOne(Agent::class, ['id' => 'agent_id']);
    }
    
}
